//
//  PublicView.h
//  AlarmClock
//
//  Created by apple on 16/9/29.
//  Copyright © 2016年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef void(^workDayCallback) (NSArray *data);
@interface PublicView : UIView
@property (nonatomic,copy) workDayCallback workDayHandle;
@property(nonatomic,assign)NSInteger defaulteSelectedIndex;
@property (nonatomic,strong) UIViewController *controller;
@property (nonatomic,strong) NSString *selectString;
@property (nonatomic,strong) UILabel *titleLabel;
@property (nonatomic,copy)void(^selectedCallback)(NSInteger selectedIndexPath,__weak PublicView * view);//回调Block
- (void)show:(CGRect)rect title:(NSString *)title dataSource:(NSArray *)dataSource;
-(void)removeSelf;
@end
